src: Squash some unused variables
authorColin Walters <walters@verbum.org>
Thu, 20 Oct 2011 20:30:34 +0000 (16:30 -0400)
committerColin Walters <walters@verbum.org>
Thu, 20 Oct 2011 20:30:34 +0000 (16:30 -0400)
src/libostree/ostree-core.c
src/libostree/ostree-repo.c
src/ot-builtin-checkout.c
src/ot-builtin-show.c

index fa139096f2232ae722f2f939ffa4e18f5085f0af..1a9a76b3e149bc113d10e3c300ee5e47c5937150 100644 (file)
@@ -131,7 +131,6 @@ ostree_get_xattrs_for_path (const char *path,
     }
   else if (bytes_read > 0)
     {
-      const char *p;
       xattr_names = g_malloc (bytes_read);
       if (llistxattr (path, xattr_names, bytes_read) < 0)
         {
index 096953b7cdca7c4a1410d85665474f37e882c4ee..689285c3e94d939b4831bc1ecabfd35342b14146 100644 (file)
@@ -405,7 +405,6 @@ import_directory_meta (OstreeRepo  *self,
   GChecksum *ret_checksum = NULL;
   GVariant *dirmeta = NULL;
   GVariant *xattrs = NULL;
-  gsize xattr_len;
 
   if (lstat (path, &stbuf) < 0)
     {
@@ -1318,7 +1317,6 @@ ostree_repo_commit (OstreeRepo *self,
   ParsedDirectoryData *root = NULL;
   GVariant *previous_commit = NULL;
   GChecksum *ret_commit_checksum = NULL;
-  char *orig_root_metadata_sha256 = NULL;
   GVariant *root_metadata = NULL;
   GChecksum *root_meta_checksum = NULL;
 
@@ -1388,7 +1386,6 @@ ostree_repo_commit_from_filelist_fd (OstreeRepo *self,
   OstreeRepoPrivate *priv = GET_PRIVATE (self);
   gboolean ret = FALSE;
   ParsedDirectoryData *root = NULL;
-  GVariant *previous_commit = NULL;
   GChecksum *ret_commit_checksum = NULL;
   GUnixInputStream *in = NULL;
   GDataInputStream *datain = NULL;
@@ -1656,8 +1653,6 @@ checkout_one_directory (OstreeRepo  *self,
   char *dest_path = NULL;
   guint32 version, uid, gid, mode;
   GVariant *xattr_variant = NULL;
-  const guint8 *xattrs = NULL;
-  gsize xattr_len;
 
   dest_path = g_build_filename (destination, dirname, NULL);
       
index a29c1aa3f754d61077b4906461bff5127d549520..ea6c1216a543c768ae39d91d4bcb84bf5db01868 100644 (file)
@@ -42,7 +42,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *prefix, GError **err
   gboolean ret = FALSE;
   OstreeRepo *repo = NULL;
   OstreeCheckout *checkout = NULL;
-  int i;
   const char *commit;
   const char *destination;
 
index 4b280fb8038e4bd48b3d23ff36f713322e599a6e..82be89a20642fe4defcd0efa34c64c69fe3d3361 100644 (file)
@@ -39,7 +39,6 @@ ostree_builtin_show (int argc, char **argv, const char *prefix, GError **error)
   GOptionContext *context;
   gboolean ret = FALSE;
   OstreeRepo *repo = NULL;
-  int i;
   const char *target;
   OstreeSerializedVariantType type;
   GVariant *variant = NULL;